//
//  SplashscreensViewController.swift
//  iModern
//
//  Created by Ralf on 7/27/15.
//  Copyright (c) 2015 com.starlooking. All rights reserved.
//

import UIKit

class SplashscreensViewController: UIViewController, UIScrollViewDelegate
{

    var scrollView: UIScrollView!

    override func viewDidLoad()
    {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.groupTableViewBackgroundColor()

        scrollView = UIScrollView()
        scrollView.delegate = self
        scrollView.frame = self.view.bounds
        let imageView = UIImageView(image: UIImage(named: "Login.png"))
        scrollView.contentSize = imageView.bounds.size;
        scrollView.addSubview(imageView);
        self.view.addSubview(scrollView)


        let logoButton: UIButton = UIButton(type: UIButtonType.System) ;
        logoButton.frame = CGRectMake(10, 400, 90, 30);
        logoButton.setTitle("登录", forState: UIControlState.Normal)
        logoButton.setTitleColor(UIColor.whiteColor(), forState: .Normal)
        logoButton.backgroundColor = UIColor.grayColor()
        self.view.addSubview(logoButton)

        let registerButton: UIButton = UIButton(type: UIButtonType.System)
        registerButton.frame = CGRectMake(115, 400, 90, 30);
        registerButton.setTitle("注册", forState: UIControlState.Normal)
        registerButton.setTitleColor(UIColor.whiteColor(), forState: .Normal)
        registerButton.backgroundColor = UIColor.grayColor()
        self.view.addSubview(registerButton)

        let strollButton: UIButton = UIButton(type: UIButtonType.System) ;
        strollButton.frame = CGRectMake(220, 400, 90, 30);
        strollButton.setTitle("逛逛", forState: UIControlState.Normal)
        strollButton.setTitleColor(UIColor.whiteColor(), forState: .Normal)
        strollButton.backgroundColor = UIColor.grayColor()
        self.view.addSubview(strollButton)

    }

    override func didReceiveMemoryWarning()
    {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


    /*
    // MARK: - Navigation
    
    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    // Get the new view controller using segue.destinationViewController.
    // Pass the selected object to the new view controller.
    }
    */

}
